//////////////////////////////////////////////////////////////////////////


#ifndef _MAINMENU_H_
#include "mainmenu.h"
#endif

//////////////////////////////////////////////////////////////////////////

#ifndef _CONTROL_H_
#include "control.h"
#endif

#ifndef _BUTTON_H_
#include "button.h"
#endif

#ifndef _EDIT_H_
#include "edit.h"
#endif

#ifndef _SURFACE_H_
#include "surface.h"
#endif
//////////////////////////////////////////////////////////////////////////


GUI_MainMenu::GUI_MainMenu()
{
    m_Buffer = 0;
    m_Controls.resize(GUI_MainMenu::ButtonCount);
    m_Labels.resize(GUI_MainMenu::LabelCount);
    m_FocusedControl = -1;

    m_Labels[GUI_MainMenu::MainMenu] = new GUI_Button(GUI_Images::Empty, GUI_Fonts::CaptionText, GUI_Colors::ButtonText, "Main menu", GUI_Images::Empty, 0.1f, 0.3f, GUI_Surface::AllignLeft, 0.01f, 0.0f);

//    m_Controls[GUI_MainMenu::CreateGame] = new GUI_Edit(GUI_Images::Edit, GUI_Fonts::EditText, GUI_Colors::EditText, "Create", GUI_Images::EditHover, 0.2f, 0.5f);
    m_Controls[GUI_MainMenu::CreateGame] = new GUI_Button(GUI_Images::ButtonGreen, GUI_Fonts::ButtonText, GUI_Colors::ButtonText, "Create", GUI_Images::ButtonGreenHover, 0.2, 0.5);
    m_Controls[GUI_MainMenu::ConnectGame] = new GUI_Button(GUI_Images::ButtonGreen, GUI_Fonts::ButtonText, GUI_Colors::ButtonText, "Connect", GUI_Images::ButtonGreenHover, 0.2f, 0.6f);
    m_Controls[GUI_MainMenu::Settings] = new GUI_Button(GUI_Images::ButtonGreen, GUI_Fonts::ButtonText, GUI_Colors::ButtonText, "Settings", GUI_Images::ButtonGreenHover, 0.2f, 0.7f);
    m_Controls[GUI_MainMenu::Exit] = new GUI_Button(GUI_Images::ButtonRed, GUI_Fonts::ButtonText, GUI_Colors::ButtonText, "Exit", GUI_Images::ButtonRedHover, 0.2f, 0.8f);

}


//////////////////////////////////////////////////////////////////////////


GUI_MainMenu::~GUI_MainMenu()
{
    for (int i = 0; i < m_Controls.size(); ++i)
        delete m_Controls[i];
    for (int i = 0; i < m_Labels.size(); ++i)
        delete m_Labels[i];}


//////////////////////////////////////////////////////////////////////////

